﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using SM;

namespace wd_1
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Application.Current.Shutdown();
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            ProcessesKiller.FindAndKillProcess("ToDesk");   // todesk比较特殊，需要关闭服务。
        }

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            //MessageBox.Show("我的文档系统路径" + Environment.GetFolderPath(Environment.SpecialFolder.Personal));
            MessageBox.Show("我的app系统路径" + Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData));   // C:\Users\wangfeng\AppData\Local\vysor
        }
    }
}
